<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
{checkActionsTpl location="tpl_pligg_head_start"}
{if preg_match('/index.php$/',$templatelite.server.SCRIPT_NAME)}
	{if $templatelite.get.category}
		{if $templatelite.get.page>1}
			<title>{$navbar_where.text2} | {#PLIGG_Page_Title#} {$templatelite.get.page} | {#PLIGG_Visual_Breadcrumb_Published_Tab#} | {#PLIGG_Visual_Name#}</title>
		{else}
			<title>{$navbar_where.text2} | {#PLIGG_Visual_Breadcrumb_Published_Tab#} | {#PLIGG_Visual_Name#}</title>
		{/if}
	{elseif $templatelite.get.page>1}
		<title>{#PLIGG_Visual_Breadcrumb_Published_Tab#} | {#PLIGG_Page_Title#} {$templatelite.get.page} | {#PLIGG_Visual_Name#}</title>
	{else}
		<title>{#PLIGG_Visual_RSS_Description#}</title>
	{/if}
{elseif preg_match('/upcoming.php$/',$templatelite.server.SCRIPT_NAME)}
	{if $templatelite.get.category}
		{if $templatelite.get.page>1}
			<title>{$navbar_where.text2} | {#PLIGG_Page_Title#} {$templatelite.get.page} | {#PLIGG_Visual_Breadcrumb_Unpublished_Tab#} | {#PLIGG_Visual_Name#}</title>
		{else}
			<title>{$navbar_where.text2} | {#PLIGG_Visual_Breadcrumb_Unpublished_Tab#} | {#PLIGG_Visual_Name#}</title>
		{/if}
	{elseif $templatelite.get.page>1}
		<title>{#PLIGG_Visual_Breadcrumb_Unpublished_Tab#} | {#PLIGG_Page_Title#} {$templatelite.get.page} | {#PLIGG_Visual_Name#}</title>
	{else}
		<title>{#PLIGG_Visual_Breadcrumb_Unpublished_Tab#} | {#PLIGG_Visual_Name#}</title>
	{/if}
{elseif preg_match('/submit.php$/',$templatelite.server.SCRIPT_NAME)}
	<title>{#PLIGG_Visual_Submit#} | {#PLIGG_Visual_Name#}</title>
{elseif preg_match('/editlink.php$/',$templatelite.server.SCRIPT_NAME)}
	<title>{#PLIGG_Visual_EditStory_Header#}: {$submit_url_title} | {#PLIGG_Visual_Name#}</title>
{elseif preg_match('/advancedsearch.php$/',$templatelite.server.SCRIPT_NAME)}
	<title>{#PLIGG_Visual_Search_Advanced#} | {#PLIGG_Visual_Name#}</title>
{elseif preg_match('/search.php$/',$templatelite.server.SCRIPT_NAME)}
	{if $templatelite.get.page>1}
	<title>{#PLIGG_Visual_Search_SearchResults#} '{if $templatelite.get.search}{$templatelite.get.search|sanitize:2|stripslashes}{else}{$templatelite.get.date}{/if}' - Page {$templatelite.get.page} | {#PLIGG_Visual_Name#}</title>
	{else}
	<title>{#PLIGG_Visual_Search_SearchResults#} '{if $templatelite.get.search}{$templatelite.get.search|sanitize:2|stripslashes}{else}{$templatelite.get.date}{/if}' | {#PLIGG_Visual_Name#}</title>
	{/if}
{elseif preg_match('/groups.php$/',$templatelite.server.SCRIPT_NAME)}
	{if $templatelite.get.page>1}
		<title>{#PLIGG_Visual_Groups#} | {#PLIGG_Page_Title#} {$templatelite.get.page} | {#PLIGG_Visual_Name#}</title>
	{else}
		<title>{#PLIGG_Visual_Groups#} | {#PLIGG_Visual_Name#}</title>
	{/if}
{elseif preg_match('/editgroup.php$/',$templatelite.server.SCRIPT_NAME)}
	<title>{$group_name} | {#PLIGG_Visual_Name#}</title>
{elseif preg_match('/group_story.php$/',$templatelite.server.SCRIPT_NAME)}
	{if $groupview!='published'}
		{if $groupview eq "upcoming"}
			{assign var='tview' value=#PLIGG_Visual_Group_Upcoming#}
		{elseif $groupview eq "shared"}
			{assign var='tview' value=#PLIGG_Visual_Group_Shared#}
		{elseif $groupview eq "members"}
			{assign var='tview' value=#PLIGG_Visual_Group_Member#}
		{/if}
		{if $templatelite.get.page>1}
			<title>{$group_name} | {if $templatelite.get.category}{$navbar_where.text2} | {/if}{$tview} | {#PLIGG_Page_Title#} {$templatelite.get.page} | {#PLIGG_Visual_Name#}</title>
		{else}
			<title>{$group_name} | {if $templatelite.get.category}{$navbar_where.text2} | {/if}{$tview} | {#PLIGG_Visual_Name#}</title>
		{/if}
	{elseif $templatelite.get.page>1}
		<title>{$group_name} | {#PLIGG_Page_Title#} {$templatelite.get.page} | {#PLIGG_Visual_Name#}</title>
	{else}
		<title>{$group_name} - {$group_description} | {#PLIGG_Visual_Name#}</title>
	{/if}
{elseif $pagename eq "register_complete"}
	<title>{#PLIGG_Validate_user_email_Title#} | {#PLIGG_Visual_Name#}</title>
{elseif $pagename eq "404"}
	<title>404 Error | {#PLIGG_Visual_Name#}</title>
{else}
	<title>{$posttitle} | {$pretitle} {#PLIGG_Visual_Name#}</title>
{/if}
{if $meta_description neq ""}
<meta name="description" content="{$meta_description}" />
{elseif $pagename eq "search"}
<meta name="description" content="{#PLIGG_Visual_Search_SearchResults#} {$templatelite.get.search|sanitize:2|stripslashes}" />
{else}
<meta name="description" content="{#PLIGG_Visual_What_Is_Pligg_Text#}" />
{/if}
{if $meta_keywords neq ""}
<meta name="keywords" content="{$meta_keywords}" />
{elseif $pagename eq "search"}
<meta name="keywords" content="{$templatelite.get.search|sanitize:2|stripslashes}" />
{else}
<meta name="keywords" content="{#PLIGG_Visual_Meta_Keywords#}" />
{/if}
<link rel="stylesheet" type="text/css" href="{$my_pligg_base}/templates/{$the_template}/css/style.css" title="EXPList" />
<link rel="alternate stylesheet" type="text/css" href="{$my_pligg_base}/templates/{$the_template}/css/style_expand.css" title="EXPExpanded" />
{checkForCss}
{if $pagename eq "submit"}<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>{/if}
<script type="text/javascript" src="{$my_pligg_base}/templates/{$the_template}/js/3rdparty/Yetii/yetii.js"></script>
<script type="text/javascript" src="{$my_pligg_base}/templates/{$the_template}/js/3rdparty/css_browser_selector/css_browser_selector.js"></script>
<script type="text/javascript" src="{$my_pligg_base}/templates/{$the_template}/js/switcher.js"></script>
{checkForJs}
{if $pagename neq "published" && $pagename neq "upcoming"}{if $Spell_Checker eq 1}
<script src="{$my_pligg_base}/3rdparty/speller/spellChecker.js" type="text/javascript"></script>
{/if}{/if}
{checkActionsTpl location="tpl_pligg_head_end"}
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{$my_base_url}{$my_pligg_base}/rss.php" />
<link rel="icon" href="{$my_pligg_base}/favicon.ico" type="image/x-icon" />
{if $pagename eq 'published'}<link rel="canonical" href="{$my_base_url}{$my_pligg_base}/{$navbar_where.text2}/" />{/if}
{if $pagename eq 'index'}<link rel="canonical" href="{$my_base_url}{$my_pligg_base}/" />{/if}
{if $pagename eq 'story'}<link rel="canonical" href="{$my_base_url}{$my_pligg_base}{$navbar_where.link2}" />{/if}
{*<script type="text/javascript" src="http://userapi.com/js/api/openapi.js?31"></script>
{literal}
<script type="text/javascript">
  VK.init({apiId: 2374173, onlyWidgets: true});
</script>
{/literal*}
<!-- Google +1 -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
</head>
<body {$body_args}>
<a name="top"></a>
{checkActionsTpl location="tpl_pligg_body_start"}
<div class="page">
<div id="maincol" class="columns">
	{include file=$tpl_header.".tpl"}
	{checkActionsTpl location="tpl_pligg_content_start"}
	{checkActionsTpl location="tpl_pligg_above_center"}
	{include file=$tpl_center.".tpl"}
	{checkActionsTpl location="tpl_pligg_below_center"}
	{checkActionsTpl location="tpl_pligg_content_end"}
	{checkActionsTpl location="tpl_pligg_banner_bottom"}
</div>
<div id="sidebar" class="columns">
	<div class="wrapper">
	{include file=$tpl_right_sidebar.".tpl"}
	</div>
</div>
</div>
{include file=$tpl_footer.".tpl"}
<script type="text/javascript" src="{$my_pligg_base}/templates/{$the_template}/js/3rdparty/MKTree/mktree.js"></script>
{literal}
<script type="text/javascript">
//<![CDATA[
var treeClass="sidecats";
var nodeLinkClass="link";
//]]>
</script>
{/literal}
{checkActionsTpl location="tpl_pligg_body_end"}
<script src="{$my_pligg_base}/templates/xmlhttp_total.php" type="text/javascript"></script>
{if $pagename neq "live"}

{literal}
<!-- Yandex.Metrika counter -->
<div style="display:none;"><script type="text/javascript">
(function(w, c) {
    (w[c] = w[c] || []).push(function() {
        try {
            w.yaCounter7416361 = new Ya.Metrika({id:7416361, enableAll: true});
        }
        catch(e) { }
    });
})(window, 'yandex_metrika_callbacks');
</script></div>
<script src="//mc.yandex.ru/metrika/watch.js" type="text/javascript" defer="defer"></script>
<noscript><div><img src="//mc.yandex.ru/watch/7416361" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
{/literal}

</body>
</html>
{/if}